package com.dao;

import com.pojo.Holiday;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface HolidayMapper {
    List<Holiday> getAllHoliday();
    List<Holiday> getAllCheckHoliday();
    List<Holiday> getAllHolidayByUid(int u_id);
    int addHoliday(Holiday holiday);
    int delHoliday(int id);
    int updateHoliday(Holiday holiday);
    Holiday getHolidayById(int id);
    Double getSumdays(int u_id);

}
